/**
 * Description: *号与++的运算优先级问题
 * File: a.c |Time: 2021-07-05 20:01
 */
#include <stdio.h>
#include "a.h"


int main(int argc, const char *argv[])
{
    int a[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}, *p = a;

    p = a + 2;
    printf("*(p++) = %d\n", *(p++));
    p = a + 2;
    printf("*++p = %d\n", *++p);
    p = a + 2;
    printf("*p++ = %d\n", *p++);
    p = a + 2;
    printf("++*p = %d\n", ++*p);


    return 0;
}

